<html>
<head><meta charset="utf-8"><title>outlives inference rules? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/outlives.20inference.20rules.3F.html">outlives inference rules?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="245248876"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/outlives%20inference%20rules%3F/near/245248876" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Taylor Yu [they/she] <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/outlives.20inference.20rules.3F.html#245248876">(Jul 07 2021 at 22:08)</a>:</h4>
<p><a href="https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md">https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md</a><br>
contains this inference rule</p>
<div class="codehilite"><pre><span></span><code>OutlivesReference:
  R ⊢ &#39;x: &#39;a
  R ⊢ T: &#39;a
  --------------------------------------------------
  R ⊢ &amp;&#39;x T: &#39;a
</code></pre></div>
<p>why isn't <code>T: 'x</code> in the premises, then? isn't that necessary for <code>&amp;'x T</code> to be well-formed?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>